package com.xbongbong.pro.businessproduct.pojo.dto;

import com.xbongbong.paas.field.UnitItemPoJo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/25 11:11
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class BusinessProductBatchListDTO extends BaseDTO {
    private static final long serialVersionUID = -2653818801199583146L;

    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.businessProductBatchList.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * 仓库id
     */
    @NotNull(message = "{dto.msg.businessProductBatchList.warehouseId.NotNull}")
    private Long warehouseId;

    /**
     * 采购合同id
     */
    private Long purchaseId;

    /**
     * 产品id
     */
    @NotNull(message = "{dto.msg.businessProductBatchList.productId.NotNull}")
    private Long productId;

    private String batch;

    private Integer page;

    private Integer pageSize;

    @NotNull(message = "{dto.msg.businessProductList.businessType.NotNull}")
    private Integer businessType;

    private String attr;

    private Integer enableMultiUnit;

    private List<UnitItemPoJo> unitRate;
}
